//By Trait:如果提交的价格为非45/24834且高于系统中时间有重叠的45促销价时，
//错误报告：小特号促销价格大于系统正在生效的45促销价格
var result_63 = JSON.parse('{"CODE":0, "ACTION":"","LEVEL":"", "MSG":"","DATA":""}');
//var JSON_CSRL_LIST = JSON.parse(find_Item_inCSRL(ITEM_NBR, CSRL));

function getRetailList(LIST, NEW_RETAIL_EFF_DATE, NEW_RETAIL_EXP_DATE) {
  for (var i = 0; i < LIST.length; i++) {
    if (is45ARTR(LIST[i].PRICE_TRAIT, LIST[i].PRICE_TYPE)
      && isDateIntersection(NEW_RETAIL_EFF_DATE, NEW_RETAIL_EXP_DATE, LIST[i].EFFECTIVE_DATE, LIST[i].EXPIRATION_DATE)
      && NEW_RETAIL > LIST[i].CUST_BASE_RTL_AMT) {
      return true;
    }
  }
  return false;
};

if (TRAIT_STORE_FLAG == "T"
  && TRAIT_STORE_NBR != 45
  && TRAIT_STORE_NBR != 24834
  && isARTR(RETAIL_TYPE) 
  && getRetailList(JSON_CSRL_LIST, NEW_RETAIL_EFF_DATE, NEW_RETAIL_EXP_DATE)) {
  result_63.CODE = 2;
  result_63.ACTION = "CHECKING_REPORT";
  result_63.MSG = "小trait号促销价格大于系统正在生效的45促销价格";
}
JSON.stringify(result_63);
